package com.yunupmall.service.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yunupmall.api.fordVO.CommiditySpecesVo;
import com.yunupmall.api.fordentity.SpecsCommodity;
import com.yunupmall.api.po.SpecsCommodityPo;

import java.util.List;

public interface SpecsCommdityService extends IService<SpecsCommodity> {
    /**
     * 商品插入规格
     * @return
     */
    String insertSpect(CommiditySpecesVo commiditySpecesVo);
    /**
     * 商品列表
     */
    Page<SpecsCommodity> getList(Integer cId, Integer pageID, Integer limit );
    /**
     * 获取商品List
     */

    List<SpecsCommodity> getListData(SpecsCommodityPo specsCommodity);

    /**
     * 删除商品规格
     */
    String del(Integer id);
    /**
     * byid
     */
    SpecsCommodity byid(Integer id);
}
